#ifndef _WINDOWS_H_
#define _WINDOWS_H_

#include <d3d9.h>
#include <d3dx9.h>
#define WINDOWS_NAME L"Contra"

class CWindows
{
private:
	HINSTANCE				hInstance_;
	HWND					hWnd_;

	LPDIRECT3D9				d3d_;
	LPDIRECT3DDEVICE9		d3dDevice_;
	LPD3DXSPRITE			spriteHandler_;

	int						ScreenWidth_;
	int						ScreenHeight_;
	int						IsWindowed_;
	LPWSTR					Name_;
public:
	CWindows(HINSTANCE hInstance,LPWSTR Name = WINDOWS_NAME,bool isWindowed= 1);
	~CWindows(void);

	void initializeWindows();
	bool startDraw();
	bool stopDraw();

	LPD3DXSPRITE getSpriteHandler() {
		return spriteHandler_;
	}

	HWND getWindowHandler() {
		return hWnd_;
	}

	LPDIRECT3DDEVICE9 getDevice() {
		return d3dDevice_;
	}
};
#endif

